package vip.ablog.xmall.product.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;
import vip.ablog.common.to.SkuReductionTo;
import vip.ablog.common.to.SpuBoundsTo;
import vip.ablog.common.utils.R;

@FeignClient("xmall-coupon")
public interface CouponFeignService {

    /***
     * 只要json数据模型是兼容的，远程调用双方无须使用同一个TO
     * @param spuBoundsTo
     */
    @PostMapping("/coupon/spubounds/save")
    R saveSpuBounds(@RequestBody SpuBoundsTo spuBoundsTo);

    @PostMapping("/coupon/skufullreduction/saveInfo")
    R saveSkuReduction(@RequestBody SkuReductionTo skuReductionTo);
}
